package com.lgx.mall.core.service;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.tree.easyui.TreeModel;
import com.lgx.mall.core.entity.Category;

public interface ICategoryService {
	
	public Category createCategory(Category category)throws DataException;
	public Category updateCategory(Category category)throws DataException;
	public void deleteCategory(Category category)throws DataException;
	public void deleteCategory(long id)throws DataException;
	public Category findCategoryById(long id);
	
	public List<Category> findCategoryList(String sql);
	
	public List<Category> findBrandCategoryList(long brandId);
	
	public List<Category> findCategoryList(); 
	public List<TreeModel> findCategoryListToCombotree();
	
	public List<Category> findChildrenCategoryListById(long id);
	
	public List<Category> findCategoryParentList();
}
